<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ include file="/static/include/taglib.jsp"%>
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />  
 <title>后台管理--菜单列表</title>
  <link href="${ctxStatic}/layui/css/layui.css" rel="stylesheet" />
 <link href="${ctxStatic}/css/kpiui.css" rel="stylesheet" />
 <script src="${ctxStatic}/js/jquery-1.8.3.min.js?v=2.0" type="text/javascript"></script>
 <script src="${ctxStatic}/layui/layui.all.js"  type="text/javascript"></script>
 <script src="${ctxStatic}/js/sys/menu.js"  type="text/javascript"></script>
    <script src="${ctxStatic}/js/common.js" type="text/javascript"></script>

</head>
<body>
 <div class="currentnav"><span class="tiao"></span><span class="navtitle">菜单管理</span></div>
 <div class="tabregion">
 <div class="layui-tab layui-tab-brief" lay-filter="tabcontent">
  <ul class="layui-tab-title">
    <li lay-id="1"  class="layui-this">菜单列表</li>
    <li lay-id="2">添加/编辑</li>
  </ul>
   <div class="layui-tab-content" style="height: 100px;">
    <div class="layui-tab-item layui-show">
     <div class="content">
	   <div id="list" class="list" lay-filter="list"></div>
	    <script type="text/html" id="operate">
        <!-- <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
         <a class="btn-common btn-delete" lay-event="del">编辑</a>-->
         <img class="btn-img" src="${ctxStatic}/images/index/btn_delete.png" lay-event="del" alt="删除" title="删除">
        </script>
	 </div>
    </div>
    <div class="layui-tab-item">
     <div class="form-region">
      <form class="layui-form" id="formedit" name="formedit" action="add_menu" method="post" target="d41d8cd98f00b204e9800998ecf8427e">
         <iframe name="d41d8cd98f00b204e9800998ecf8427e" src="about:blank" style="display:none;"></iframe>
       <div style="width:80%;margin:0 auto">
        <table>
            <tr>
             <td class="td_right">上级菜单：</td>
             <td class="td_left">
                <select name="parentid" lay-verify="required">
                <option value="0">请选择上级菜单</option>
                <c:forEach var="item" items="${lst}">
                  <option value="${item.menuid}">&nbsp;${item.menuname}</option>
                </c:forEach>
                </select>
             </td>
             <td class="td_right">菜单名称：</td>
             <td class="td_left">
               <input type="text" id="menuname" name="menuname" lay-verify="required" autocomplete="off" placeholder="请输入菜单名称" class="layui-input" >
             </td>
            </tr>   
            <tr>
             <td class="td_right">菜单地址：</td>
             <td class="td_left">
              <input type="text" id="url" name="url" autocomplete="off" placeholder="请输入菜单地址" class="layui-input" >
             </td>
             <td class="td_right">菜单图片：</td>
             <td class="td_left"><input type="text" id="icon" name="icon" autocomplete="off" placeholder="请输入菜单图片" class="layui-input" ></td>
            </tr>    
            <tr>
             <td class="td_right">菜单类别：</td>
             <td class="td_left" colspan="3">
              <input type="radio" name="menutype" value="0" title="菜单" checked="">
              <input type="radio" name="menutype" value="1" title="按钮">
             </td>
            </tr>    
            <tr>
             <td class="td_right">描述：</td>
             <td class="td_left" colspan="3">
               <textarea class="layui-textarea" placeholder="请输入描述"  name="remark" ></textarea>
             </td>
            
            </tr>    
            <tr>
             <td class="td_center" colspan="4">
               <button class="button" lay-submit="" lay-filter="demo1" id="btnsave">保存</button>
		      <input type="button" value="返回列表" class="button" onclick="vMenu.OpTab(1)"/>
             </td>
            </tr>      
        </table>
        </div>
		   <input type="hidden" name="menuid" value="0" >
      </form>
      </div>
    </div>
   </div>
  </div>
  </div>
  
</body>
</html>